<!--
 * @Author: FanWeiHua
 * @Date: 2021-08-02 08:46:34
 * @LastEditTime: 2021-08-02 09:28:54
 * @Description: notFound
-->
<template>
  <section class="not-found">
    <n-result status="404" title="404 资源不存在" description="重新匹配路径">
      <template #footer>
        <n-button><router-link to="/">去首页</router-link></n-button>
      </template>
    </n-result>
  </section>
</template>
<script>
import { NResult, NButton } from 'naive-ui';
export default {
  setup() {},
  components: {
    NResult,
    NButton
  }
};
</script>
<style lang="less">
.not-found {
  height: 100vh;
  background-color: rgb(16, 16, 20);
  position: relative;
  a {
    text-decoration: none;
    color: #fff;
  }
  .n-result {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
</style>
